﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace ThomasTym.BoxGame.World
{
    [TestFixture]
    class TileTester
    {
        [Test]
        public void TestConstructor()
        {
            Tile testTile = new Tile(TileType.FLOOR);
            Assert.AreEqual(testTile.Type, TileType.FLOOR);
            Assert.AreEqual(testTile.IsExit, false);
            Assert.AreEqual(testTile.IsReachable, false);
            Assert.AreEqual(testTile.IsStart, false);
            Assert.AreEqual(testTile.IsPath, false);
            Assert.IsNotEmpty(testTile.Vertices);
        }
        [Test]
        public void TestFloorConstructor()
        {
            Tile testTile = new Tile(TileType.FLOOR);
            Assert.AreEqual(TileType.FLOOR,testTile.Type);
            Assert.AreEqual(6, testTile.Vertices.Length);
        }
        [Test]
        public void TestExitConstructor()
        {
            Tile testTile = new Tile(TileType.EXIT);
            Assert.AreEqual(testTile.Type, TileType.EXIT);
            Assert.AreEqual(30, testTile.Vertices.Length);
        }

        [Test]
        public void TestWallConstructor()
        {
            Tile testTile = new Tile(TileType.WALL);
            Assert.AreEqual(testTile.Type, TileType.WALL);
            Assert.AreEqual(30, testTile.Vertices.Length);
        }        
    }
}
